QuickOPC User's Guide and Reference
TargetDataEventHandler<TData> Delegate



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.ComponentModel.Linking Namespace : TargetDataEventHandler<TData> Delegate
Type of data handled by this delegate.
The source of the event. This is set to the target object of the linking.
The event arguments; contain the actual event data.
Represents the method that will handle a data event that carries data of TData type for a target object of System.Object type.
Syntax
'Declaration
 
<CLSCompliantAttribute(False)>
<ComVisibleAttribute(False)>
Public Delegate Sub TargetDataEventHandler(Of TData)( _
   ByVal sender As Object, _
   ByVal e As TargetDataEventArgs(Of TData) _
) 
'Usage
 
Dim instance As New TargetDataEventHandler(Of TData)(AddressOf HandlerMethod)
[CLSCompliant(false)]
[ComVisible(false)]
public delegate void TargetDataEventHandler<TData>( 
   object sender,
   TargetDataEventArgs<TData> e
)
[CLSCompliant(false)]
[ComVisible(false)]
generic<typename TData>
public delegate void TargetDataEventHandler( 
   Object^ sender,
   TargetDataEventArgs<TData^>^ e
)

Parameters

sender
The source of the event. This is set to the target object of the linking.
e
The event arguments; contain the actual event data.

Type Parameters

TData
Type of data handled by this delegate.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also